package com.bdqn.struts.action;

import com.opensymphony.xwork2.Action;

public class ArraysDataTransferAction implements Action {
    private Double[]hobbies = new Double[0];
    private Double[]numbers = new Double[1];

    public String execute(){
        System.out.println("hobbies的长度是"+hobbies.length);
        for (int i=0 ; i<hobbies.length; i++){
            System.out.println("hobbies数组中的第"+i+"个元素是: "+hobbies[i]);
        }
        System.out.println("numbers的长度是:"+numbers.length);
        for (int i=0; i<numbers.length;i++){
            System.out.println("numbers数组中的第"+i+"个元素是:"+numbers[i]);
        }
        return "SUCCESS";
    }

}
